﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Movies.CopyUtility
{
    public class DTOFileMovementReport
    {
        public Double Size = 0.0;
        public List<DTOFileMovementDetails> SkipList = new List<DTOFileMovementDetails>();
        public List<DTOFileMovementDetails> ValidList = new List<DTOFileMovementDetails>();

        public Double AvailbaleSize = 0.0;

        private bool destinationWrite = false;
        public bool IsDestinationWriteAllowed
        {
            get
            {
                return destinationWrite;
            }
            set
            {
                destinationWrite = value;
            }
        }

        private String destination = null;
        public String Destination
        {
            get
            {
                return destination;
            }
            set
            {
                destination = value;
                if (!destination.EndsWith("\\"))
                {
                    destination = destination + "\\";
                }
            }
        }

        public bool IsSizeAvailbale
        {
            get
            {
                return (AvailbaleSize > Size);
            }
        }
    }
}
